package com.logicalthinking.socialmall.dao;

import com.github.chenlijia1111.commonModule.entity.Product;
import com.logicalthinking.socialmall.common.vo.requestVo.product.AdminProductQueryParams;
import com.logicalthinking.socialmall.common.vo.requestVo.product.AppProductQueryParams;
import com.logicalthinking.socialmall.common.vo.responseVo.product.AdminProductListVo;
import com.logicalthinking.socialmall.common.vo.responseVo.product.AppProductListVo;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/**
 * 产品表
 *
 * @author chenLiJia
 * @version 1.0
 * @since 2019-11-01 13:46:43
 **/
public interface SocialProductMapper extends Mapper<Product> {

    /**
     * 后台查询商品列表
     * @param params
     * @return
     */
    List<AdminProductListVo> adminListPage(AdminProductQueryParams params);

    /**
     * 客户端查询商品列表
     * @param params
     * @return
     */
    List<AppProductListVo> appListPage(AppProductQueryParams params);

}
